home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr52
/
achoice2.zip
/
ACHOICE2.PRG
Wrap
Text File
|
1993-04-02
|
2KB
|
65 lines
* * * * * BIRTHDAY.PRG
*
* * By: Walt Morgan, PO Box 353, Lawrenceburg, TN 38464 (615) 762-3300
*
* * * * * Using Clipper '87 ACHOICE() Example
PUBLIC RMONTH
CLEAR
USE BIRTHDAY
ZAP
USE
H1='ROUTINE TO PRINT MONTHLY BIRTHDAY LISTING'
L1 = (80-LEN(H1))/2
@ 1,0 TO 3,79 DOUBLE
@ 2,L1 SAY H1
F1 = ' Highlight Month and Press Enter '
L2 = (80-LEN(F1))/2
SET COLOR TO N/W
@ 20,L2 SAY F1
SET COLOR TO W/N
RMONTH = MONTH(DATE())+1 && This allows placing the cursor on the
* && next month as a logical choice.
DECLARE RNEW[12]
RNEW[1] = 'January ' && Placing a space in front of each choice
RNEW[2] = 'February ' && allows wrapping of the cursor with the
RNEW[3] = 'March ' && spacebar. The up/down arrows still function
RNEW[4] = 'April ' && as expected. However, pressing the first letter
RNEW[5] = 'May ' && of the choice is disabled. wlm 2-16-88
RNEW[6] = 'June '
RNEW[7] = 'July '
RNEW[8] = 'August '
RNEW[9] = 'September'
RNEW[10] = 'October '
RNEW[11] = 'November '
RNEW[12] = 'December '
MTOP = 6
MLEFT = 35
MBOTTOM = 17
MRIGHT = 43
WTOP = MTOP -1
WLEFT = MLEFT -2
WBOTTOM = MBOTTOM+1
WRIGHT = MRIGHT +2
@ WTOP,WLEFT TO WBOTTOM,WRIGHT DOUBLE && draw a box around choices
MENUCHOICE = ACHOICE(MTOP,MLEFT,MBOTTOM,MRIGHT,RNEW,'','',RMONTH)
READ
RMONTH = MENUCHOICE
CLEAR
MOK = ' '
MSG = 'Ready Printer and Press ENTER to Continue Any Other Key to Quit'
CTR = (80-LEN(MSG))/2
@ 22,CTR SAY MSG GET MOK
READ
IF .NOT. MOK = ' '
CLEAR
RETURN
ENDIF
CLEAR
MSG = 'Printing...Please Wait'
CTR = (80-LEN(MSG))/2
@ 23,CTR SAY MSG
*
* END OF FILE